﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EventLog.aspx.cs" Inherits="iEN.PlatformSet.EventLog" %>
<%@ Register src="../UserControl/TopMenu.ascx" tagname="TopMenu" tagprefix="uc2" %>
<%@ Register assembly="DundasWebGauge" namespace="Dundas.Gauges.WebControl" tagprefix="DGWC" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>帳號管理</title>
    <style type="text/css">
        #IMap
        {
            width: 952px
         }
        .style1
        {
            height: 36px;
        }
        .style3
        {
            height: 159px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <uc2:TopMenu ID="TopMenu1" runat="server" />
        <center>
    <asp:ScriptManager ID="ScriptManager1" runat="server" />     
        <asp:Label ID="lblMsg" runat="server" Font-Names="微軟正黑體" Font-Size="X-Large" 
                        ForeColor="Red" Text="你沒有瀏覽此頁面的權限" Visible="False"></asp:Label>
        <asp:Panel ID="Panel1" runat="server">
        <table>
            <tr>
                <td style="background-image:url('../images/title_back.gif')" align="center" ; 
                    width="952px" class="style1" >
                    <asp:Label ID="Label1" runat="server" Text="事件記錄" BackColor="Transparent" style="color:Blue;background-color:Transparent;font-family:標楷體;font-size:XX-Large;"></asp:Label>
                </td>
            </tr>
            <tr><td class="style3"><asp:UpdatePanel ID="UpdatePanel1" 
                    runat="server">
                <ContentTemplate>
                <table align="left">
                <tr><td>
                <table align="left" style="font-family:微軟正黑體;font-size:XX-Large;">
                        <tr  align="left">
                            <td>
                                大&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 樓：<asp:DropDownList ID="ddBuild" runat="server" AutoPostBack="True" 
                                    CssClass="normal" onselectedindexchanged="ddBuild_SelectedIndexChanged">
                                </asp:DropDownList>
                            </td>
                            <td>
                                樓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 層：<asp:DropDownList ID="ddfloor" runat="server" AutoPostBack="True" 
                                    CssClass="normal" onselectedindexchanged="ddfloor_SelectedIndexChanged">
                                </asp:DropDownList>
                            </td>
                            <td>
                                寢&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 室：<asp:DropDownList ID="ddBlock" runat="server" AutoPostBack="True" 
                                    CssClass="normal">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr align="left">
                            <td>
                                事件分類：<asp:DropDownList ID="ddlCategory" runat="server" AutoPostBack="True" 
                                    CssClass="normal" 
                                    onselectedindexchanged="ddlCategory_SelectedIndexChanged">
                                </asp:DropDownList>
                            </td>
                            <td>
                                事件類型：<asp:DropDownList ID="ddType" runat="server" AutoPostBack="True" 
                                    CssClass="normal">
                                </asp:DropDownList>
                            </td>
                            <td>
                                </td>
                        </tr>
                        <tr align="left">
                            <td>
                                開始日期：<asp:TextBox ID="tbStartTime" runat="server" Width="100px" Height="15px"></asp:TextBox>
                                <cc1:CalendarExtender ID="ceStartTime" runat="server" CssClass="cssCalendar" 
                                                    Format="yyyy/MM/dd" TargetControlID="tbStartTime"></cc1:CalendarExtender>
                            </td>
                            <td>
                                結束日期：<asp:TextBox ID="tbEndTime" runat="server" Width="100px" Height="15px"></asp:TextBox>
                                <cc1:CalendarExtender ID="ceEndTime" runat="server" CssClass="cssCalendar" 
                                                    Format="yyyy/MM/dd" TargetControlID="tbEndTime"></cc1:CalendarExtender>
                            </td>
                            <td>
                                </td>
                        </tr>
                        <tr align="left">
                            <td>
                                <asp:Button ID="btnQuery" runat="server" Text="查詢" onclick="btnQuery_Click" />
                            </td>
                            <td>
                            </td>
                            <td>
                                </td>
                        </tr>
                </table>
                </td></tr>
                <tr><td>
                    <asp:GridView ID="gvEventLog" runat="server" AutoGenerateColumns="False" 
                        CellPadding="4" ForeColor="#333333" Height="178px" 
                        HorizontalAlign="Left" Width="950px" Caption="事件記錄查詢清單" 
                        Font-Size="Large" 
                        style="margin-right: 0px" 
                        onrowdatabound="gvEventLog_RowDataBound" AllowPaging="True" 
                        Visible="False" EmptyDataText="查無事件記錄" 
                        onpageindexchanging="gvEventLog_PageIndexChanging">
                        <AlternatingRowStyle BackColor="White" Font-Size="Medium" />
                        <Columns>
                            <asp:BoundField DataField="_category" HeaderText="事件分類" />
                            <asp:BoundField DataField="_event_type" HeaderText="事件類型" />
                            <asp:BoundField DataField="build" HeaderText="大樓" />
                            <asp:BoundField DataField="floor" HeaderText="樓層" />
                            <asp:BoundField DataField="block" HeaderText="寢室" />
                            <asp:BoundField DataField="_event_memo" HeaderText="記錄" />
                            <asp:BoundField DataField="_account" HeaderText="登入帳號" />
                            <asp:BoundField DataField="_ip" HeaderText="IP" />
                            <asp:BoundField DataField="_updatetime" HeaderText="事件時間" />
                            <asp:BoundField DataField="_success" HeaderText="成功" />
                        </Columns>
                        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                            <RowStyle BackColor="#E3EAEB" Font-Size="Medium" />
                            <EmptyDataRowStyle CssClass="note" />
                            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" Font-Size="Medium" 
                                ForeColor="White" />
                            <EditRowStyle BackColor="PaleGoldenrod" />
                            <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td></tr>
                </table>
                </ContentTemplate>
                </asp:UpdatePanel>
                </td></tr>

                <tr><td align="left">&nbsp;</td></tr>
        </table>
        </asp:Panel>
        </center>
</form>
</body>
</html>